STEP 14: Let's make the first stick figure dance!

  • From LOGIC and , drag Function Call with Parameter to the bottom of your program.
  • Change the function name to dance(), and my_var to person1. Click Run to watch the stick figure dance!

The list person1 is being passed into the dance() function, where it is being used as my_list within the function. All of the commands in the loop are then assigned to each sprite in the list, one at a time!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)